import request from '@/utils/request'

// 查询常规费用单列表
export function listRuleCost(query) {
  return request({
    url: '/payfee/ruleCost/list',
    method: 'get',
    params: query
  })
}

// 查询常规费用单详细
export function getRuleCost(costId) {
  return request({
    url: '/payfee/ruleCost/' + costId,
    method: 'get'
  })
}

// 新增常规费用单
export function addRuleCost(data) {
  return request({
    url: '/payfee/ruleCost',
    method: 'post',
    data: data
  })
}

// 修改常规费用单
export function updateRuleCost(data) {
  return request({
    url: '/payfee/ruleCost',
    method: 'put',
    data: data
  })
}

// 删除常规费用单
export function delRuleCost(costId) {
  return request({
    url: '/payfee/ruleCost/' + costId,
    method: 'delete'
  })
}

// 导出常规费用单
export function exportRuleCost(query) {
  return request({
    url: '/payfee/ruleCost/export',
    method: 'get',
    params: query
  })
}


// 创建常规费用单
export function createRuleCost(data) {
  return request({
    url: '/payfee/ruleCost/createRuleCost',
    method: 'post',
    data: data
  })
}

// 查询房间费用
export function selectAdueRecord(query) {
  return request({
    url: '/payfee/ruleCost/selectAdueRecord',
    method: 'get',
    params: query
  })
}

// 保证金退款
export function bailRefund(query) {
  return request({
    url: '/payfee/ruleCost/bailRefund',
    method: 'get',
    params: query
  })
}

// 改费接口
export function updateChangeFee(data) {
  return request({
    url: '/payfee/ruleCost/changeFee',
    method: 'post',
    data: data
  })
}
// 拆费接口
export function executeDemolitionFee(data) {
  return request({
    url: '/payfee/ruleCost/demolitionFee',
    method: 'post',
    data: data
  })
}
export function editRuleCost(data) {
  return request({
    url: '/payfee/ruleCost/edit',
    method: 'post',
    data: data
  })
}



